<template>
  <div>
    bar

    <button @click="goBack">后退</button>
    <button @click="goHome">返回首页</button>
  </div>
</template>
<script>
  export default {
    components: {},
    data () {
      return {}
    },
    mounted () {

    },
    methods: {
      goBack () {
        this.$router.go(-1)
      },
      goHome () {
        this.$router.push('/router')
      }
    }
  }
</script>
<style>

</style>
